package com.five.matebook.activity.income;

import android.content.Context;

import com.five.matebook.activity.db.IncomeRecordTable;

public class IncomeColume {
    public static final String SPENT_MONEY = "money";
    public static final String SPENT_USAGE = "mainUsage";
    public static final String SPENT_SENCOND_USAGE = "secondUsage";
    public static final String HAPPEND_TIME = "happenTime";
    public static final String INCOME_ROLE = "spentRole";
    public static final String SPENT_REMARKS = "remarks";
    public static final String UPDATE_TIME = "updateTime";

    public static void init(Context context) {
        IncomeRecordTable table = IncomeRecordTable.getInstance(context);
        table.createIfNotExist();
        table.addColume(SPENT_MONEY, Float.class, 20);
        table.addColume(SPENT_USAGE, String.class, 20);
        table.addColume(SPENT_SENCOND_USAGE, String.class, 20);
        table.addColume(HAPPEND_TIME, Long.class, 1000);
        table.addColume(INCOME_ROLE, String.class, 20);
        table.addColume(SPENT_REMARKS, String.class, 200);
        table.addColume(UPDATE_TIME, Long.class, 20);
    }
}
